package com.example.lombok_test;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("a")
public class Test_Controller {

    @Autowired
    public Test test;

    @RequestMapping("b")
    public int getTest(){
        System.out.println(test.getB());
        return test.getA();
    }

}
